package cn.sumpu.app.coolsk.domain;

import java.io.Serializable;
import java.util.Date;

import cn.sumpu.toolkit.common.util.Common;

public class Hotel implements Serializable {

	private static final long serialVersionUID = -7228206707965838085L;

	private String id;
	private String name;
	private String opened;
	private String address;
	private Integer star;
	private String room;
	private Integer roomAmount;
	private Boolean foreign;
	private Boolean priceComHas;
	private String phone;
	private String fax;
	private String hotelType;
	private String image1;
	private String image2;
	private String image3;
	private String image4;
	private String image5;
	private String trafficInfo;
	private String roundPlace;
	private String desc;
	private String province;
	private String provinceName;
	private String city;
	private String cityName;
	private String county;
	private Boolean enabled;
	private String payFrom;
	private String discommt;
	private String lng;
	private String lat;
	private Discuss discuss;//酒店点评
	private Double minPrice;//最低房价
	private Double marketPrice;//最低市场价
	private Date gmtCreated = new Date();
	private Date gmtModified = new Date();

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getOpened() {
		return opened;
	}

	public void setOpened(String opened) {
		this.opened = opened;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getRoom() {
		return room;
	}

	public void setRoom(String room) {
		this.room = room;
	}

	public Boolean getForeign() {
		return foreign;
	}

	public void setForeign(Boolean foreign) {
		this.foreign = foreign;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getHotelType() {
		return hotelType;
	}

	public void setHotelType(String hotelType) {
		this.hotelType = hotelType;
	}

	public String getImage1() {
		return image1;
	}

	public void setImage1(String image1) {
		this.image1 = image1;
	}

	public String getImage2() {
		return image2;
	}

	public void setImage2(String image2) {
		this.image2 = image2;
	}

	public String getImage3() {
		return image3;
	}

	public void setImage3(String image3) {
		this.image3 = image3;
	}

	public String getImage4() {
		return image4;
	}

	public void setImage4(String image4) {
		this.image4 = image4;
	}

	public String getImage5() {
		return image5;
	}

	public void setImage5(String image5) {
		this.image5 = image5;
	}

	public String getTrafficInfo() {
		return trafficInfo;
	}

	public void setTrafficInfo(String trafficInfo) {
		this.trafficInfo = trafficInfo;
	}

	public String getRoundPlace() {
		return roundPlace;
	}

	public void setRoundPlace(String roundPlace) {
		this.roundPlace = roundPlace;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
	public String getDescText(){
		String text="";
		if(!Common.emptyStr(desc)){
			text=Common.filterHtml(desc);
			text=text.replaceAll(" ","");
			if(text.length()>100){
				text=text.substring(0, 95)+"...";
			}
		}
		return text;
	}
	public Boolean getEnabled() {
		return enabled;
	}

	public void setEnabled(Boolean enabled) {
		this.enabled = enabled;
	}

	public Date getGmtCreated() {
		return gmtCreated;
	}

	public void setGmtCreated(Date gmtCreated) {
		this.gmtCreated = gmtCreated;
	}

	public Date getGmtModified() {
		return gmtModified;
	}

	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}

	public Integer getStar() {
		return star;
	}

	public Integer getRoomAmount() {
		return roomAmount;
	}

	public void setRoomAmount(Integer roomAmount) {
		this.roomAmount = roomAmount;
	}

	public void setStar(Integer star) {
		this.star = star;
	}
	
	 public String getPayFrom() {
		return payFrom;
	}

	public void setPayFrom(String payFrom) {
		this.payFrom = payFrom;
	}
	
	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public Boolean getPriceComHas() {
		return priceComHas;
	}

	public void setPriceComHas(Boolean priceComHas) {
		this.priceComHas = priceComHas;
	}


	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getCounty() {
		return county;
	}

	public void setCounty(String county) {
		this.county = county;
	}

	public String getDiscommt() {
		return discommt;
	}

	public void setDiscommt(String discommt) {
		this.discommt = discommt;
	}

	public String getLng() {
		return lng;
	}

	public void setLng(String lng) {
		this.lng = lng;
	}

	public String getLat() {
		return lat;
	}

	public void setLat(String lat) {
		this.lat = lat;
	}

	public Double getMinPrice() {
		return minPrice;
	}
	public Long getMinPriceRound(){
		return Math.round(minPrice);
		
	}
	public void setMinPrice(Double minPrice) {
		this.minPrice = minPrice;
	}

	public String getProvinceName() {
		return provinceName;
	}

	public void setProvinceName(String provinceName) {
		this.provinceName = provinceName;
	}

	public String getCityName() {
		return cityName;
	}

	public void setCityName(String cityName) {
		this.cityName = cityName;
	}

	public Discuss getDiscuss() {
		return discuss;
	}

	public void setDiscuss(Discuss discuss) {
		this.discuss = discuss;
	}

	public Double getMarketPrice() {
		return marketPrice;
	}

	public void setMarketPrice(Double marketPrice) {
		this.marketPrice = marketPrice;
	}

}
